home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.programming / comp.sys.amiga.programmer_32916_000061.msg < prev    next >
Encoding:
Text File  |  1994-11-27  |  2.7 KB  |  79 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: news.chalmers.se!sunic!EU.net!howland.reston.ans.net!cs.utexas.edu!convex!news.duke.edu!news-feed-1.peachnet.edu!gatech!newsfeed.pitt.edu!dsinc!scala!jesup
  3. From: jesup@scala.scala.com ("Randell Jesup")
  4. Subject: Re: Aux-Handler
  5. Message-ID: <1994May27.215432.11773@scala.scala.com>
  6. Date: Fri, 27 May 1994 21:54:32 GMT
  7. References: <50230265@bmagic.mayn.sub.de> <2rqp6s$brp@nemesis.jpl.nasa.gov>
  8. Organization: SCALA, Inc.
  9. Lines: 34
  10.  
  11. jdickson@nemesis.jpl.nasa.gov (Jeff Dickson) wrote:
  12. >>What do I have to do to ensure that my aux-handler (based on sd-aux)
  13. >>after mounted is not mistakenly interpreted as having a filesystem by some
  14. >>system-monitor-tools? Maybe the mountlist entry is the problem?
  15. >>
  16. >>Handler = L:KMSAUX-Handler
  17. >>Startup = DEVICE:serial.device/UNIT:0/SPEED:19200
  18. >>StackSize = 4000
  19. >>Priority =  5
  20. >>GlobVec = -1
  21. >>
  22. >>Or what has to be done in the handler code to tell everybody the absence of a
  23. >>file system under it?
  24.  
  25. >    When handlers are begun (at least the one's that I have written) the
  26. >OS requests a lock on what could be thought of as the root of the volume for
  27. >filesystems. For non filesystem type handlers I would disallow any locks from
  28. >being issued thereafter (ACTION_LOCATE_OBJECT). I still allowed that one lock
  29. >to be duplicated though (ACTION_COPY_DIR). Also I would answer false to the
  30. >ACTION_IS_FILE_SYSTEM dos packet.
  31.  
  32.     Actually, the "standard" test (other than the direct query with
  33. ACTION_IS_FILE_SYSTEM) is to see if the handler supports ACTION_LOCATE_OBJECT.
  34. If you are a handler, and not a filesystem, you should not support
  35. ACTION_LOCATE_OBJECT at all.
  36.  
  37.     Check out the port-handler example from the Atlanta(?) devcon disks.
  38. (You'll want to add support for ACTION_IS_FILESYSTEM - return FALSE.)
  39.  
  40. -- 
  41. Randell Jesup, Scala US R&D
  42. Randell.Jesup@scala.com
  43. Ex-Commodore-Amiga Engineer, class of '94
  44. #include <std/disclaimer>
  45.  
  46.  
  47. From: dunham@gdl.msu.edu (Steve Dunham)
  48. Subject: Re: Tagcalls in a .library
  49. Date: 31 May 1994 19:02:04 GMT
  50.  
  51. Ketil Hunn (ketil@brosme.dhmolde.no) wrote:
  52. : How do I create tagcalls in a .library since varargs cannot be put in registers?
  53.  
  54. : ex:
  55. : funcA(struct TagItem *taglist)
  56.  
  57. : func(Tag tag1,...)
  58. : (
  59. :  return funcA((struct TagItem *)&tag1);
  60. : )
  61.  
  62. : In other words, how do I put function func in the library?
  63.  
  64. You can't.  But SAS has a special #pragma statement that will
  65. automatically take care of everything. Just put funcA in your library
  66. and if the pragma statement for funcA looks like this:
  67.  
  68. #pragma libcall funcA 1e 8
  69.  
  70. Then you add the following line after it
  71.  
  72. #pragma tagcall func 1e 8
  73.  
  74. (this is all in the Library Reference manual)
  75.  
  76. Later,
  77. Steve
  78. dunham@gdl.msu.edu
  79.